<template>
    <view class="page-history content"  :style="{ direction: $store.state.dir }">
		<view class="page-title h1">
			{{$t("history.title")}}
		</view>
        <uni-list v-if="list.length > 0">
			<uni-list-item  v-for="item in list" :title="item.createTime" showArrow link="redirectTo" to="./chat"/>
		</uni-list>
        <view v-else class="empty-wrapper flex-center">
            <u-empty mode="list" :text="$t("nodata")"></u-empty>
        </view>
    </view>
</template>

<script>
import { orderList } from '../../lib/service';
	
export default {
    data() {
        return {
            list: [
                
            ]
        };
    },
	onLoad(options){
		var houseId=options.id
		orderList(houseId).then(res=>{
			this.list=res.data
		})
	},
    methods: {}
};
</script>

<style lang="scss" scoped>
page{
	background-color: #f9fbff;
}
.page-history{
	padding-top: 20px;
}
.empty-wrapper {
    height: 80vh;
}
</style>
